import request from '@/utils/request'

// 查询排队信息列表
export function listWait(query) {
  return request({
    url: '/rms/wait/list',
    method: 'get',
    params: query
  })
}

// 查询排队信息详细
export function getWait(waitId) {
  return request({
    url: '/rms/wait/' + waitId,
    method: 'get'
  })
}

// 新增排队信息
export function addWait(data) {
  return request({
    url: '/rms/wait',
    method: 'post',
    data: data
  })
}

// 修改排队信息
export function updateWait(data) {
  return request({
    url: '/rms/wait',
    method: 'put',
    data: data
  })
}

// 删除排队信息
export function delWait(waitId) {
  return request({
    url: '/rms/wait/' + waitId,
    method: 'delete'
  })
}
